import {defineStore} from "pinia";
import {ref} from "vue";

export const useCommentStore = defineStore('commentStore',()=>{
    /**
     * true-显示评论弹窗
     * @type {Ref<UnwrapRef<boolean>>}
     */
    let showCommentDialog = ref(false);

    const sortType = ref(['默认','最新']);
    let activeIndex = ref(0);
    return{
        showCommentDialog,sortType,activeIndex
    }
})